package cn.cvs.dao;

import cn.cvs.pojo.TSysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SysUserDao {
    int count();
    //分页
    List<TSysUser> getUserByRoleIdPage(
                    @Param("realName") String realName
                    ,@Param("roleId") Long roleId
                    ,@Param("pageStart") Integer pageStart
                    ,@Param("pageSize") Integer pageSize);

    Integer getUserCount(TSysUser user);


    List<TSysUser> getUserByPojo(@RequestParam("account") String params);


    int addUser(TSysUser sysUser);

    List<TSysUser> getUserListByPojo(TSysUser param);

    boolean updateUser(TSysUser sysUser);

}



